#include <iostream>
#include <iomanip>
using namespace std;

class RESISTOR
{
    private:
        double R;
    public:
        RESISTOR(double r):R(r){cout<<"创建电阻"<<R<<"欧\n";}
        ~RESISTOR(){cout<<"销毁电阻"<<R<<"欧\n";}
        void Show() const{cout<<"电阻: "<<R<<"欧\n";}
};

class INDUCTOR
{
    private:
        double I;
    public:
        INDUCTOR(double i):I(i){cout<<"创建电感"<<I<<"亨\n";}
        ~INDUCTOR(){cout<<"销毁电感"<<I<<"亨\n";}
        void Show() const{cout<<"电感: "<<I<<"亨\n";}
};

class CAPACITOR
{
    private:
        double C;
    public:
        CAPACITOR(double c):C(c){cout<<"创建电容"<<C<<"法\n";}
        ~CAPACITOR(){cout<<"销毁电容"<<C<<"法\n";}
        void Show() const{cout<<"电容: "<<C<<"法\n";}
};

class CIRCUIT
{
    private:
        RESISTOR dianzu;
        INDUCTOR diangan;
        CAPACITOR dianrong;
    public:
        CIRCUIT(double r,double i,double c):dianzu(r),diangan(i),dianrong(c){cout<<"创建电路\n";}
        ~CIRCUIT(){cout<<"销毁电路\n";}
        void Show() const{dianzu.Show();diangan.Show();dianrong.Show();}
};


int main()
{
    double r, i, c;
    cin >> r >> i >> c;
    CIRCUIT a(r, i, c);
    a.Show();
    return 0;
}